import 'package:flutter/cupertino.dart';
import 'package:flutter_app/res/colours.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';

class LoadMoreWidget extends StatelessWidget {
  bool noMore = true;

  LoadMoreWidget(this.noMore);

  @override
  Widget build(BuildContext context) {
    return noMore
        ? Container(
            child: new Padding(
            padding: EdgeInsets.only(top: 10, bottom: 20),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                SpinKitWave(
                  color: Colours.ff0692ff,
                  size: 20,
                ),
                Padding(
                    child: Text("正在加载..",
                        style:
                            TextStyle(color: Colours.ff2c2c2c, fontSize: 15.0)),
                    padding: EdgeInsets.only(left: 10.0))
              ],
            ),
          ))
        : Container(
            child: new Padding(
            padding: EdgeInsets.only(top: 10, bottom: 10),
            child: Text("哥，这回真没了！！",
                style: TextStyle(color: Colours.ff2c2c2c, fontSize: 15.0)),
          ));
  }
}
